trigger ValidateLeadOnUpload on Lead (before insert, before update) {
    LeadTriggerHandler handler = new LeadTriggerHandler();
    if (Trigger.isInsert){
        handler.processInsertTrigger(Trigger.new);
        handler.doUpdateSourceDetailField(Trigger.New);
    }
    else if(Trigger.isUpdate){
        handler.processUpdateTrigger(Trigger.new);
        handler.doUpdateSourceDetailField(Trigger.New);
    }
    return;
}